package com.longe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author longe
 * @since 2020-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_friend_request")
public class FriendRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 请求好友用户id
     */
    private Integer fromUser;

    /**
     * 被请求好友用户id
     */
    private Integer toUser;

    /**
     * 发送的消息
     */
    private String remark;

    /**
     * 是否已处理(1为已处理0为未处理)
     */
    private Integer status;

    /**
     * 请求时间
     */
    private Date createTime;


}
